package com.cinc.mdm.modules.bom.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: bom明细
 * @Author: jeecg-boot
 * @Date:   2021-10-24
 * @Version: V1.0
 */
@ApiModel(value="mdm_bom_detail对象", description="bom明细")
@Data
@TableName("mdm_bom_detail")
public class MdmBomDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**主记录ID*/
    @ApiModelProperty(value = "主记录ID")
    private java.lang.String mainId;
	/**物料ID*/
    @ApiModelProperty(value = "物料ID")
    private java.lang.String materialId;
    /**父物料ID*/
    @ApiModelProperty(value = "父物料ID")
    private java.lang.String superMaterialId;
	/**物料编号*/
	@Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private java.lang.String materialCode;
	/**物料描述*/
	@Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private java.lang.String materialDesc;
    /**物料类型ID*/
    @Dict(dictTable = "mdm_material_type", dicText = "material_type_name", dicCode = "id")
    @Excel(name = "物料类型", width = 15, dictTable = "mdm_material_type", dicText = "material_type_name", dicCode = "id")
    @ApiModelProperty(value = "物料类型ID")
    private java.lang.String materialTypeId;
	/**单位*/
	@Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private java.lang.String materialUnitCode;
	/**工厂*/
    @Excel(name = "工厂", width = 15, dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
    @ApiModelProperty(value = "工厂")
    private java.lang.String factory;
	/**组件数量*/
	@Excel(name = "组件数量", width = 15)
    @ApiModelProperty(value = "组件数量")
    private java.math.BigDecimal partQty;
	/**损耗率*/
	@Excel(name = "损耗率", width = 15)
    @ApiModelProperty(value = "损耗率")
    private java.lang.String lossRate;
	/**项目文本*/
	@Excel(name = "项目文本", width = 15)
    @ApiModelProperty(value = "项目文本")
    private java.lang.String projectNote;
	/**仓储地点*/
	@Excel(name = "仓储地点", width = 15)
    @ApiModelProperty(value = "仓储地点")
    private java.lang.String storageLocation;
	/**用途*/
	@Excel(name = "用途", width = 15, dicCode = "mdm_use_type")
    @ApiModelProperty(value = "用途")
    private java.lang.String bomUseType;
	/**版本编号*/
	@Excel(name = "版本编号", width = 15)
    @ApiModelProperty(value = "版本编号")
    private java.lang.String versionNum;
	/**工位编号*/
	@Excel(name = "工位编号", width = 15)
    @ApiModelProperty(value = "工位编号")
    private java.lang.String stationNum;
	/**生效日期*/
	@Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "生效日期")
    private java.util.Date effectiveDate;
	/**失效日期*/
	@Excel(name = "失效日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "失效日期")
    private java.util.Date expiryDate;
	/**消耗方式*/
	@Excel(name = "消耗方式", width = 15, dicCode = "mdm_consume_type")
    @ApiModelProperty(value = "消耗方式")
    private java.lang.String consumeType;
	/**创建人*/
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
	/**启用标志*/
    @ApiModelProperty(value = "启用标志")
    private java.lang.String enableFlag;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private java.lang.Integer tenantId;
}
